<!DOCTYPE html>
<html>
<head>
    <title>控制气泡</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: transparent;
            overflow: hidden;
            width: 200px;
            height: 200px;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            padding-bottom: 10px;
        }
        
        .bubble-container {
            position: relative;
            width: 60px;
        }
        
        .bubble {
            width: 60px;
            height: 60px;
            background: rgba(114, 231, 153, 0.95);
            border-radius: 50%;
            position: relative;
            cursor: move;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1;
            user-select: none;
            -webkit-user-select: none;
            -webkit-app-region: drag;
        }

        .bubble-content {
            width: 60px;
            height: 60px;
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
            cursor: pointer;
            color: white;
            font-size: 24px;
            -webkit-app-region: no-drag;
        }

        .bubble-menu {
            position: absolute;
            display: none;
            z-index: 999;
            bottom: 45px;
            left: 50%;
            transform: translateX(-50%);
            width: 160px;
            height: 100px;
            -webkit-app-region: no-drag;
        }

        .menu-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .menu-button {
            width: 40px;
            height: 40px;
            padding: 0;
            margin: 0;
            border: none;
            background: rgba(75, 186, 238, 0.95);
            cursor: pointer;
            border-radius: 50%;
            font-size: 16px;
            text-align: center;
            -webkit-app-region: no-drag;
            color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.2s;
            position: absolute;
        }

        #toggleNotes {
            left: 15px;
            bottom: 5px;
        }

        #addNote {
            right: 15px;
            bottom: 5px;
        }

        #settings {
            left: 60px;
            bottom: 25px;
        }

        .menu-button:hover {
            background: rgba(65, 105, 225, 1);
            transform: scale(1.1);
            z-index: 1000;
        }

        .menu-button.active {
            background: #4CAF50;
        }

        .tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 12px;
            pointer-events: none;
            z-index: 9999;
            white-space: nowrap;
            animation: fadeIn 0.2s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    </style>
</head>
<body>
    <div class="bubble-container">
        <div class="bubble" id="mainBubble">
            <div class="bubble-content"><img src="../images/logo.png" alt="logo" style="width: 100%; height: 100%;"></div>
            <div class="bubble-menu" id="bubbleMenu">
                <div class="menu-container">
                    <button class="menu-button" id="toggleNotes" title="显示/隐藏便签">👁️</button>
                    <button class="menu-button" id="addNote" title="添加便签">＋</button>
                    <button class="menu-button" id="settings" title="设置">⚙️</button>
                </div>
            </div>
        </div>
    </div>
    <script src="js/bubble.js"></script>
</body>
</html> 